﻿using System.ComponentModel;
using System.Data;
using System.Windows;
using System.Windows.Controls;
using WPFExcelReport;
using WPFExcelReport.Helpers;
namespace WPFExcelReport
{
    public partial class TSZL02
    {

        public TSZL02()
        {
            if (DesignerProperties.GetIsInDesignMode(this))
                return;
            MV = new VAMSTAMM();
            this.DataContext = MV;
            InitializeComponent();
        }
        public override void Window_Loaded(object sender, RoutedEventArgs e)
        {
            if (DesignerProperties.GetIsInDesignMode(this))
                return;
            if (IsLoaded)
                return;
            base.Window_Loaded(sender, e);
            LOADAM02();
        }
        public override void OnAMTYPChg(string value)
        {
            LOADAM02();
            base.OnAMTYPChg(value);
        }
        public void LOADAM02()
        {
            SResult = TMV.LOADAM02(KSTKRS, KST, AMTYP);
            MergeData(SResult, false, true);
        }
        public override void vwMaster_CurrentChanged(object sender, System.EventArgs e)
        {
            base.vwMaster_CurrentChanged(sender, e); 
        } 
    }
}